package com.neusoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.service.EmpInfoService;
import com.neusoft.vo.EmpInfoResultVO;

@CrossOrigin
@RestController
public class EmpInfoHandler {

	@Autowired
	private EmpInfoService ser;
	
	@RequestMapping("/getEmpInfo")
	public EmpInfoResultVO getEmpInfo(Integer empno) {

		return ser.getEmpInfo(empno);
	}
}
